package ynu.sxp.demoapp.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ynu.sxp.demoapp.entity.DeliveryAddress;

import java.util.List;
import java.util.UUID;

@Repository
public interface DeliveryAddressRepository extends JpaRepository<DeliveryAddress, UUID> {
    DeliveryAddress findByUserIdAndAddress(String userId, String address);
    List<DeliveryAddress> findByUserId(String userId);
}